<?
$xml = $_GET['xml'];

$str=file_get_contents($xml);


//echo  $str;exit;
$sxml = simplexml_load_string($str, 'SimpleXMLElement', LIBXML_NOCDATA);



echo json_encode($sxml);



?>